<script setup>
import {useRouter}from 'vue-router'
const router = useRouter()

const submit = () =>{
     router.push('/home/add')
}
</script>

<template>
    <div class="page">
        <h5>您的备忘录空空如也,快去创建一个</h5>
        <el-button :loading="loading" type="primary" @click="submit" style="width: 100%">新建</el-button>
    </div>
</template>

<style lang="scss" scoped>
.page{
     display: flex;
     flex: 1;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     h5{
        font-size: 20px;
     }
}
</style>